﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class payment : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Label11.Text = Request.QueryString["Total"];
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("peorder.aspx");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        int selectedValue = RadioButtonList1.SelectedIndex;

        if (RadioButtonList1.SelectedIndex == 0)
        {
            Response.Redirect("MasterCard.aspx?Total=" + Server.UrlEncode(Label11.Text));
        }

        if (RadioButtonList1.SelectedIndex == 1)
        {
            Response.Redirect("VISA.aspx?Total=" + Server.UrlEncode(Label11.Text));
        }

        if (RadioButtonList1.SelectedIndex == 2)
        {
            Response.Redirect("Paypal.aspx?Total=" + Server.UrlEncode(Label11.Text));
        }

        if (RadioButtonList1.SelectedIndex == 3)
        {
            Response.Redirect("AmericanExpress.aspx?Total=" + Server.UrlEncode(Label11.Text));
        }

    }
}